import aiohttp
import asyncio


async def main():
    async with aiohttp.ClientSession() as client:
        async with aiohttp.request('GET', 'http://python.org/') as resp:
            assert resp.status == 200
            print(await resp.text())

if __name__ == '__main__':
    asyncio.get_event_loop().run_until_complete(main())
